<?php $form = new CActiveForm; ?>
<?php if(count($data)>0): ?>
<div class='row'>
	<?php echo $form->labelEx($model,'family_id'); ?>
	<?php echo $form->dropDownList($model,'family_id',CHtml::listData($data, 'id', 'title')); ?>
	<?php echo $form->error($model,'family_id'); ?>
</div>
<?php else: ?>
	<?php echo $form->hiddenField($model, 'family_id', array('value'=>'')); ?>
<?php endif; ?>